﻿using Mapster;
using Microsoft.Extensions.DependencyInjection;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace XW.Web.Framework.Extensions
{
    public class MapsterProfile
    {
        /// <summary>
        /// 
        /// </summary>
        public static void SetConfig(IServiceCollection services)
        {
            TypeAdapterConfig.GlobalSettings.Default.PreserveReference(true);
            //TypeAdapterConfig<SimplePoco, SimpleDto>.NewConfig().PreserveReference(false);
        }
    }
}
